cmake_minimum_required(VERSION 3.8)
project(fortranchecker Fortran)

#find_package(MKL CONFIG REQUIRED PATHS $ENV{MKLROOT})

# Add executable target
add_executable(fortranchecker
    basicMathSubroutines.f90 
    checkData.f90
    checkInputData.f90
    computeResidual.f90 
    main.f90 
    readData.f90 
    writeData.f90 
)

#target_include_directories(solDensMatrixFinalRound PUBLIC $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
#target_include_directories(solDensMatrixFinalRound PUBLIC "C:/Program Files (x86)/Intel/oneAPI/mkl/2023.2.0/include/intel64/lp64")

# Link the C library
target_link_directories(fortranchecker PUBLIC ../fortranapp)
target_link_libraries(fortranchecker PUBLIC solDensMatrixFinalRound)
